package com.casems.service;

import com.casems.commons.dto.Menus;
import com.casems.commons.vo.LoginVO;
import com.casems.commons.vo.PageVO;
import com.casems.commons.vo.RegisterVO;
import com.casems.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tch
 * @since 2023-05-12
 */
public interface UserService extends IService<User> {

    User getUser(String phone);

    String login(LoginVO loginVO);

    String register(RegisterVO registerVO);

    List<Menus> getMenusByUserId(int userId);

    void setChildren(Menus top, List<Menus> menus);

    PageVO<User> getAllStaff(int pageNumber, int pageSize,User user);

    PageVO<User> getAllPatient(int pageNumber, int pageSize,User user);

    boolean addUser(User user,int roleId);

    User getUserForCase(User user);

    String loginSms(LoginVO loginVO);
}
